package cn.funnyxb.powerremember.uis.task.done.demo;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.widget.Toast;
import cn.funnyxb.powerremember.uis.task.done.InputIntentChecker;
import cn.funnyxb.tools.appFrame.App;
import cn.funnyxb.tools.appFrame.activityFrame.ActivitysHolder;

public class DemoActivity extends Activity
  implements IUI_Demo
{
  private IProccessor_Demo proccessor;
  private ProgressDialog progressDialog;

  private void dismissWaittingDialog()
  {
    if (this.progressDialog == null)
      return;
    this.progressDialog.dismiss();
  }

  private void showWaittingDialog()
  {
    this.progressDialog = new ProgressDialog(this);
    this.progressDialog.setMessage(getString(2131034132));
    this.progressDialog.show();
  }

  public void notifyDataLoaded()
  {
    dismissWaittingDialog();
  }

  public void notifyErrCall()
  {
    Toast.makeText(this, 2131034147, 1).show();
    finish();
  }

  public void notifyIntentOk(InputIntentChecker paramInputIntentChecker)
  {
  }

  public void notifyWaitingLoadData()
  {
    showWaittingDialog();
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    this.proccessor = new Proccessor_Demo(this);
    setContentView(2130903040);
    this.proccessor.asyncPrepare(getIntent());
  }

  protected void onDestroy()
  {
    this.proccessor.destroy();
    super.onDestroy();
  }

  protected void onResume()
  {
    super.onResume();
    App.getApp().getActivitysHolder().regCurrentActivity(this);
  }

  protected void onStart()
  {
    super.onStart();
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.uis.task.done.demo.DemoActivity
 * JD-Core Version:    0.5.3
 */